# -*- coding: utf-8 -*-
from selenium.webdriver.common.by import By
application_management_rdc={
    '应用管理页面': {
        '新建应用': [By.XPATH, '//*[contains(text(),"新建应用")]'],
        '应用名称搜索框':[By.XPATH,'//*[@placeholder="应用名称"]'],
        '应用名称':[By.XPATH,'//*[@class="cell-app-name el-tooltip"]'],
        '应用状态':[By.CSS_SELECTOR,'.el-tag--warning'],
        '删除第一个应用':[By.XPATH,'//*[@class="mp-icon-trash-2"]'],
        '确认删除':[By.XPATH,'//*[@class="el-button el-button--default el-button--primary el-button--danger"]']
    },
    '产品型_新建应用页面':{
        '云ERP产品应用':[By.XPATH, '//*[contains(text(),"云ERP产品应用") and @class="type-title"]'],
        '下一步':[By.XPATH, '//button[@text="下一步"]']
    },
    '产品型_云ERP产品应用':{
        '应用名称':[By.XPATH, '//input[@class="el-input__inner" and @placeholder="请输入应用名称"]'],
        '确定': [By.XPATH, '//*[@class="mc-dialog add-app-dialog"]//*[@text="确定"]']
    },
    '项目型_新建应用页面': {
        '云ERP定制应用': [By.XPATH, '//*[contains(text(),"云ERP定制应用") and @class="type-title"]'],
        '下一步': [By.XPATH, '//button[@text="下一步"]']
    },
    '项目型_云ERP定制应用': {
        '应用名称':[By.XPATH, '//input[@class="el-input__inner" and @placeholder="请输入应用名称"]'],
        '点击请选择扩展产品':[By.XPATH, '//input[@class="el-input__inner" and @placeholder="请选择扩展产品"]'],
        '选择扩张产品_数据中台web':[By.XPATH, '//*[contains(text(),"数据中台Web")]'],
        '确定': [By.XPATH, '//*[@class="mc-dialog add-app-dialog"]//*[@text="确定"]']
    }
}